package com.winspread.app.ui

import com.winspread.active.extension.loge
import com.winspread.app.R
import com.winspread.app.databinding.ActivityAutoClearEditBinding
import com.winspread.mvvm.base.vm.BaseNotVmActivity
import com.winspread.ui.edittext.EditTextInpitType
import com.winspread.ui.edittext.EditTextInpitType.englishDigit
import com.winspread.ui.edittext.EditTextInpitType.inputTypeSize


/**
 *Author: Amin
 *Data: 2021/10/19 11:21
 *
 *Description:  组合edittext
 *
 */
class EditTextActivity : BaseNotVmActivity<ActivityAutoClearEditBinding>(R.layout.activity_auto_clear_edit) {


    override fun initView() {
        //搜索结果的回调
        binding.autoclear.setSearchCallback {
            "initView:${it} ".loge()
        }


        //设置输入类型为英文和数字
        binding.autoclear.setInputFilter(EditTextInpitType.inputType(englishDigit), inputTypeSize(10))




    }


}